/**
 * 题目要求
 * 
 * 使用flowright写一个函数，返回一个下划线连接的小写字符串
 * 
 */

const fp = require("lodash/fp")

let _underscore = fp.replace(/\s+/g, '_')
const sanitizeNames = fp.flowRight(fp.map(fp.flowRight(fp.toLower, _underscore)))

console.log(sanitizeNames(['Hello World']))